<?php TPL::output('admin/global/header.tpl.htm'); ?>
<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<div id="main-content" style="margin:0 0 0 200px;">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3>内容设置</h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div id="notification_box" class="notification success png_bg" style="display:none;"> <a class="close" href="javascript:;"></a>
				<div name="notification_content"></div>
			</div>
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/setting/sys_save_ajax/" method="post">
					<fieldset>
					<p groupid="4" name="quick_publish">
						<label>提交站点模式：</label>
						<input type="radio" name="quick_publish" value="Y" <?php if ($this->setting['quick_publish'] == 'Y'){ ?> checked="true"<?php } ?>/>
						快捷模式
						<input type="radio" name="quick_publish" value="N" <?php if ($this->setting['quick_publish'] == 'N'){ ?> checked="true"<?php } ?>/>
						高级模式 </p>
					<p groupid="6" name="upload_enable">
						<label>允许上传附件：</label>
						<input type="radio" name="upload_enable" value="Y" <?php if ($this->setting['upload_enable'] == 'Y'){ ?> checked="true"<?php } ?>/>
						是
						<input type="radio" name="upload_enable" value="N" <?php if ($this->setting['upload_enable'] == 'N'){ ?> checked="true"<?php } ?>/>
						否 </p>
					<p groupid="6" name="allowed_upload_types">
						<label>允许的附件文件类型：<span></span></label>
						<input name="allowed_upload_types" class="text-input small-input" type="text" value="<?php echo $this->setting['allowed_upload_types']; ?>"/>
					</p>
					<p groupid="6" name="upload_size_limit">
						<label>允许上传最大附件大小：<span style="font-weight:normal">(单位:KB)</span></label>
						<input name="upload_size_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['upload_size_limit']; ?>"/>
					</p>
					<p groupid="4" name="answer_length_lower">
						<label>回复内容最小字符数限制：<span style=" font-weight:normal;">(填写 0 则不限制字数)</span></label>
						<input name="answer_length_lower" class="text-input small-int" type="text" value="<?php echo $this->setting['answer_length_lower']; ?>"/>
					</p>
					<p groupid="4" name="question_title_limit">
						<label>站点标题最大字符数限制：<span style=" font-weight:normal;">(填写 0 则不限制字数)</span></label>
						<input name="question_title_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['question_title_limit']; ?>"/>
					</p>
					<p groupid="4" name="comment_limit">
						<label>评论内容最大字符数限制：<span style=" font-weight:normal;">(填写 0 则不限制字数)</span></label>
						<input name="comment_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['comment_limit']; ?>"/>
					</p>
					<p groupid="4" name="topic_title_limit">
						<label>标签标题最大字符数限制：<span style=" font-weight:normal;">(填写 0 则不限制字数)</span></label>
						<input name="topic_title_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['topic_title_limit']; ?>"/>
					</p>
					<p groupid="6" name="upload_avatar_size_limit">
						<label>允许上传最大头像/标签图片大小：<span style="font-weight:normal">(单位:KB)</span></label>
						<input name="upload_avatar_size_limit" class="text-input small-int" type="text" value="<?php echo $this->setting['upload_avatar_size_limit']; ?>"/>
					</p>
					<p groupid="6" name="answer_edit_time">
						<label>回复编辑/删除有效时间：<span style="font-weight:normal">(单位:分钟)</span></label>
						<input name="answer_edit_time" class="text-input small-int" type="text" value="<?php echo $this->setting['answer_edit_time']; ?>"/>
					</p>
					<p groupid="4" name="uninterested_fold">
						<label>“没有帮助”数量达到多少个时折叠回复：</label>
						<input name="uninterested_fold" class="text-input small-int" type="text" value="<?php echo $this->setting['uninterested_fold']; ?>"/>
					</p>
					<p groupid="4" name="best_answer_day">
						<label>系统自动选出最佳回复时间：<span style="font-weight:normal">(单位:天，填写 0 则关闭自动选择最佳回复)</span></label>
						<input name="best_answer_day" class="text-input small-int" type="text" value="<?php echo $this->setting['best_answer_day']; ?>"/>
					</p>
					<p groupid="4" name="best_answer_min_count">
						<label>参与自动选出最佳回复的站点最小回复数：</label>
						<input name="best_answer_min_count" class="text-input small-int" type="text" value="<?php echo $this->setting['best_answer_min_count']; ?>"/>
					</p>
					<p groupid="4" name="best_agree_min_count">
						<label>参与自动选出最佳回复的最小赞同数：</label>
						<input name="best_agree_min_count" class="text-input small-int" type="text" value="<?php echo $this->setting['best_agree_min_count']; ?>"/>
					</p>
					<p groupid="4" name="related_question_keyword_count">
						<label>相关站点关键词匹配数：<span style="font-weight:normal">(数值越高，相关站点个数越少，匹配越精确。)</span></label>
						<input name="related_question_keyword_count" class="text-input small-int" type="text" value="<?php echo $this->setting['related_question_keyword_count']; ?>"/>
					</p>
					<p>
						<input class="button" type="button" onClick="ajax_post($('#_save_form'), _form_process);" value="  保  存  " />
					</p>
					</fieldset>
					<div class="clear"></div>
				</form>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>
	<!-- footer -->
	<?php TPL::output('admin/global/footer.tpl.htm'); ?>
	<!-- footer -->
</div>
<!-- main -->
</div>
</body></html>